<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<h:body>


	<div align="center" class="DivModalPesq">

		<h:form id="formCCLista">
			<div align="left" class="DivAdic" style="margin-top: 24px;">
				<h:outputText value="#{message.msg_filtro}" styleClass="LabelFont" />
			</div>
			<div align="left" class="DivAdic">
				<p:selectOneMenu value="#{listaSolicitaTela.comboCentroCusto}"
					effect="fade" style="font-size: 14px;" size="9">
					<f:selectItem itemLabel="#{message.msg_descri}" itemValue="1"
						style="font-size: 14px;" />
					<f:selectItem itemLabel="#{message.msg_codigo}" itemValue="2"
						style="font-size: 14px;" />
				</p:selectOneMenu>
			</div>
			<div align="left" class="DivAdic">
				<p:inputText value="#{listaSolicitaTela.campoPesqui}"
					styleClass="LabelFont" style="font-size: 14px;" required="false"
					size="15" maxlength="30" />
				<p:commandButton icon="ui-icon-search"
					title="#{dmessage.botao_pesquisar}" styleClass="ButtonPesq"
					action="#{listaSolicitaTela.pesqCentroCusto}" update="dCcsLista"
					global="false" />
			</div>
			<br />
			<p:dataTable id="dCcsLista" var="cc"
				value="#{listaSolicitaTela.ccModel}" paginator="false" rows="10"
				selection="#{listaSolicitaTela.solicitacao.itensSolicitacao[0].centroCusto}"
				selectionMode="single" emptyMessage="#{message.msg_semvalores}">
				<p:ajax event="rowSelect" oncomplete="dlg9.hide()"
					process="@this,:formEditaSolicita:iEcc" global="false"
					update=":formEditaSolicita:iEcc" />
				<p:column headerText="#{message.msg_codigo}" styleClass="LabelFont">
					<h:outputText value="#{cc.codigo}" size="25" styleClass="LabelFont" />
				</p:column>

				<p:column headerText="#{message.msg_descri}" styleClass="LabelFont">
					<h:outputText value="#{cc.descricao}" size="25"
						styleClass="LabelFont" />
				</p:column>
			</p:dataTable>
		</h:form>
	</div>

</h:body>
</html>